/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package resources;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Alexander_Seiner
 */
public class SpaceGeneration 
{
    private static int rndCounter = 0;
    public static int seed = 23011922;
//    public static int seed = 2633152;
    public static int getRndCounter()
    {
        rndCounter++;
        return rndCounter;
    }

    public static HashMap<Integer ,String> galaxyCores = new HashMap<Integer, String>()
    {
        {
            put(0, "sphere");
            put(1, "bar");
        }
    };
    
    public static HashMap<Integer ,Integer> galaxyArms = new HashMap<Integer, Integer>()
    {
        {
            put(0, 0);
            put(1, 2);
            put(2, 4);
            put(3, 6);
            put(4, 8);
        }
    };
    
    public static HashMap<Integer ,Double> getGalaxySize = new HashMap<Integer, Double>()
    {
        {
            put(0, 5000.0);
            put(1, 15000.0);
            put(2, 30000.0);
            put(3, 80000.0);
            put(4, 100000.0);
        }
    };
    
    public static HashMap<Integer, Integer> getArmRotation = new HashMap<Integer, Integer>()
    {
        {
            put(0, 1);
            put(1, 2);
            put(2, 3);
            put(3, 4);
            put(4, 5);
            put(5, 6);
            put(6, 7);
        }
    };
    
    public static int getStarAmount(double size)
    {
        if(size == 10000.0)
        {
            return 660000;
        }
        else if(size == 15000.0)
        {
            return 6600000;
        }
        else if(size == 30000.0)
        {
            return 13200000;
        }
        else if(size == 80000.0)
        {
            return 35200000;
        }
        else if(size == 100000.0)
        {
            return 44000000;
        }
        return 0;
    }
    
    public static HashMap<Integer, String> getStarType = new HashMap<Integer, String>()
    {
        {
            put(0, "red");
            put(1, "red");
            put(2, "red");
            put(3, "red");
            put(4, "orange");
            put(5, "orange");
            put(6, "yellow");
            put(7, "yellow");
            put(8, "yellow white");
            put(9, "blue");
        }
    };
}
